package xyz.xiaoshengfu.xrpc.config;

import java.io.Serializable;

/**
 * <p>Title: ProtocolConfig</p>
 * <p>Description: xRPC协议配置信息</p>
 * @author xiaoshengfu(2439323118@qq.com)
 * @date 2020年3月24日
 */
public class ProtocolConfig implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;
	private Integer port;

	public ProtocolConfig() {
		super();
	}

	public ProtocolConfig(String name, Integer port) {
		super();
		this.name = name;
		this.port = port;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	@Override
	public String toString() {
		return "ProtocolConfig [name=" + name + ", port=" + port + "]";
	}

}
